{extend name="public:base" /}

{block name="css"}
<link href="__INDEX__/css/cai.css" tppabs="__INDEX__/css/cai.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/news.css" tppabs="__INDEX__/css/news.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/list.css" tppabs="__INDEX__/css/list.css" rel="stylesheet" type="text/css">
<link href="__INDEX__/css/css2.css" tppabs="__INDEX__/css/css2.css" rel="stylesheet" type="text/css">
{/block}

{block name="css"}

{block name="main"}
<table width="980" border="0" cellspacing="0" cellpadding="0">
    <tbody>
    <tr>
        <td width="252" height="300" valign="top" bgcolor="#FFFFFF">
            <table width="244" border="0" cellpadding="0" cellspacing="0" class="tablex5">
                <tbody><tr>
                    <td height="30" background="__INDEX__/images/list_leibg.jpg" tppabs="__INDEX__/images/list_leibg.jpg" class="list_dhbt" style="padding-left:24px">
                        <div style="float:left"><img name="" src="__INDEX__/images/lbxtb.jpg" tppabs="__INDEX__/images/lbxtb.jpg" alt=""></div>
                        <div style=" float:left;background-image:url(__INDEX__/images/lbbj.jpg);	background-repeat: repeat-x;width: auto; height:29px; line-height:29px"><span id="LsortName">业务工作</span></div>
                        <div style="float:left"><img name="" src="__INDEX__/images/lbxtbend.jpg" tppabs="__INDEX__/images/lbxtbend.jpg" alt=""></div>
                    </td>
                </tr>
                <tr>
                    <td height="200" valign="top" bgcolor="#F5F5F5">
                        <div class="ywgz">
                            <ul>
                                {volist name="yw_type_list" id="vo"}
                                <li><a href="{:url('news', ['categoryId' => $vo.id])}">{$vo.name}</a></li>
                                {/volist}
                            </ul>
                        </div>
                    </td>
                </tr>
                </tbody></table>

        </td>
        <td valign="top" bgcolor="#FFFFFF">
            <table width="726" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                <tbody>
                <tr>
                    <td class="top_leidh" style="color:#333333">
                        当前位置：
                        <a href="javascript: void(0)">职业资格查询</a>

                    </td>
                </tr>
                </tbody>
            </table>
            <table width="726" border="0" cellpadding="0" cellspacing="0" class="list_tablebk">
                <tbody>
                <tr>
                    <td height="29" background="__INDEX__/images/list_lbflbg.jpg" tppabs="__INDEX__/images/list_lbflbg.jpg" class="list_dhbt">
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/dhxtb.gif" tppabs="__INDEX__/images/dhxtb.gif" alt=""></div>
                        <div style=" float:left;background-image:url(__INDEX__/images/dhbj.jpg);	background-repeat: repeat-x;width: auto; height:30px; line-height:30px">
                            <a href="javascript: void(0)">职业资格查询</a></div>
                        <div style="float:left">
                            <img name="" src="__INDEX__/images/dhbjend.jpg" tppabs="__INDEX__/images/dhbjend.jpg" alt="">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="40" class="list_newlb">
                        <ul>
                            <!--<iframe src="../zgzs.htm" tppabs="/zgzs.htm" frameborder="0" width="100%" scrolling="no" height="548"></iframe>-->

                            <div class="chaa">　</div>
                            <div class="chaa">
                                <form id="form1" name="form1" method="post">
                                    <input type="hidden" name="stat" value="go">
                                    <ul>
                                        <li>
                                            <font color="#fff">[ 欢迎进入证书查询系统 ]</font>
                                        </li>
                                        <li style="padding-right: 40px;">

                                            姓&nbsp;&nbsp;名：<input name="name" type="text" id="name" size="15">
                                        </li>
                                        <li>
                                            证书编号：<input name="no" type="text" id="no" size="15">
                                            <input class="cahxun" type="button" value="查询" id="B1" name="B1">
                                        </li>
                                    </ul>
                                </form>
                            </div>

                        </ul>
                    </td>
                </tr>
                </tbody>
            </table>
        </td>
    </tr>
    </tbody>
</table>

{block name="js"}
<script src="__STATIC__/layer/layer.js"></script>
<script>
    $(function () {
        $("#B1").click(function () {
            var name = $("#name").val();
            var no = $("#no").val();

            if (name == '') {
                layer.alert('请填写姓名')
                return;
            }
            if (no == '') {
                layer.alert('请填写证书编号')
                return;
            }

            var url = "/index/index/senForm";
            $.ajax({
                url: url,
                type: "Post",
                data: {no: no, name: name},
                dataType: "json",
                success: function (data) {
                    if (data.result == 1) {
                        var url = "/index/index/senDetail/name/" + name + "/no/" + no;

                        location.href = url
                    } else {
                        layer.alert(data.msg)
                    }
                },
                error: function () {
                    layer.alert('系统异常，请重试或联系技术');
                }
            });
        })
    })
</script>
{/block}
{/block}